﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for GameWeekTeam
/// </summary>
public class GameweekTeam
{

    public int gameweek { get; set; }

    public IList<Player> keepers { get; set; }
    public IList<Player> defenders { get; set; }
    public IList<Player> midfielders { get; set; }
    public IList<Player> forwards { get; set; }
    public IList<Player> substitutes { get; set; } 
    

    public void initPositions()
    {
        foreach (Player player in keepers)
        {
            player.position = Position.Keeper;
        }
        foreach (Player player in defenders)
        {
            player.position = Position.Defender;
        }
        foreach (Player player in midfielders)
        {
            player.position = Position.Midfielder;
        }
        foreach (Player player in forwards)
        {
            player.position = Position.Forward;
        }
	    
    }
}